export default {
  pages: [
    "pages/index/index",
    "pages/login/index",
    "pages/workbenchesPage/index",
    "pages/myFilePage/index",
    "pages/addressBookPage/index",
  ],
  subPackages: [
    {
      root: "packageA",
      pages: [
        "pages/my/index",
        // "pages/my/myFile/index",
        "pages/my/mySchedule/index",
        "pages/my/myMeeting/index",
        "pages/kanbanSettings/index",
        "pages/kanbanSettings/addSettings/index",
        "pages/kanbanSettings/staffSelect/index",
        "pages/kanbanSettings/userSelect/index",
        // "pages/workbenches/index",
        "pages/workbenches/addSchedule/index",
      ],
    },
    {
      root: "packageB",
      pages: [
        "pages/addTask/index",
        "pages/taskManagement/index",
        "pages/taskManagement/taskDetails/index",
        "pages/workReport/index",
        "pages/workReport/writeWorkReport/index",
        "pages/taskDashboard/index",
        "pages/meetingDetail/index",
        // "pages/addressBook/index",
        "pages/addressBook/addressBookDetails/index",
        "pages/sessionList/index",
        "pages/historyMeetSchedule/index",
        "pages/conferenceRoom/index",
        "pages/conferenceRoom/addConferenceRoom/index",
      ],
    },
    {
      root: "packageC",
      pages: [
        "pages/checkIn/index",
        "pages/checkInDetails/index",
        "pages/attendanceManage/addCheckInRules/index",
        "pages/attendanceManage/devicesWiFi/index",
        "pages/attendanceManage/moreSettings/index",
        "pages/attendanceManage/moreSettings/myDevice/index",
        // "pages/message/index"
      ],
    },
    {
      root: "components",
      pages: [
        "deptStaffSelect/index", 
        "deptStaffSelectDevice/index"
      ],
    },
  ],
  tabBar: {
    color: "#7A7E83",
    selectedColor: "#1E74FD",
    backgroundColor: "#ffffff",
    borderStyle: "black",
    list: [
      {
        pagePath: "pages/index/index",
        text: "首页",
        iconPath: "imgs/msg.png",
        selectedIconPath: "imgs/msgs.png",
      },
      {
        pagePath: "pages/workbenchesPage/index",
        text: "工作台",
        iconPath: "imgs/gzt.png",
        selectedIconPath: "imgs/gzts.png",
      },
      {
        pagePath: "pages/myFilePage/index",
        text: "我的文件",
        iconPath: "imgs/wd.png",
        selectedIconPath: "imgs/wds.png",
      },
      {
        pagePath: "pages/addressBookPage/index",
        text: "通讯录",
        iconPath: "imgs/user.png",
        selectedIconPath: "imgs/users.png",
      },
    ],
  },
  // preloadRule: {
  //   "pages/index/index": {
  //     network: "all",
  //     packages: ["packageA"], // 进入首页时预加载packageA
  //   },
  // },
  // 可选：声明使用的接口（增强兼容性）
  permission: {
    "scope.userLocation": {
      desc: "获取Wi-Fi需要位置权限",
    },
  },
  window: {
    backgroundTextStyle: "light",
    navigationBarBackgroundColor: "#fff",
    navigationBarTitleText: "WeChat",
    navigationBarTextStyle: "black",
  },
};

// export default defineAppConfig({
//   pages: ["pages/index/index", "pages/login/index"],
//   subPackages: [
//     {
//       root: "packageA",
//       pages: [
//         "pages/my/index",
//         // "pages/my/myFile/index",
//         "pages/my/mySchedule/index",
//         "pages/my/myMeeting/index",
//         "pages/kanbanSettings/index",
//         "pages/kanbanSettings/addSettings/index",
//         "pages/kanbanSettings/staffSelect/index",
//         "pages/kanbanSettings/userSelect/index",
//         // "pages/workbenches/index",
//         "pages/workbenches/addSchedule/index",
//       ],
//     },
//     {
//       root: "packageB",
//       pages: [
//         "pages/addTask/index",
//         "pages/taskManagement/index",
//         "pages/taskManagement/taskDetails/index",
//         "pages/workReport/index",
//         "pages/workReport/writeWorkReport/index",
//         "pages/taskDashboard/index",
//         "pages/meetingDetail/index",
//         // "pages/addressBook/index",
//         "pages/addressBook/addressBookDetails/index",
//         "pages/sessionList/index",
//         "pages/historyMeetSchedule/index",
//         "pages/conferenceRoom/index",
//         "pages/conferenceRoom/addConferenceRoom/index",
//       ],
//     },
//     {
//       root: "packageC",
//       pages: [
//         "pages/checkIn/index",
//         "pages/checkInDetails/index",
//         "pages/attendanceManage/addCheckInRules/index",
//         // "pages/message/index"
//       ],
//     },
//     {
//       root: "components",
//       pages: ["deptStaffSelect/index"],
//     },
//   ],
//   // preloadRule: {
//   //   "pages/index/index": {
//   //     network: "all",
//   //     packages: ["packageA", "packageB"], // 进入首页时预加载packageA
//   //   },
//   // },
//   // requiredPrivateInfos: ["getWifiList", "onGetWifiList", "getConnectedWifi"],
//   // 可选：声明使用的接口（增强兼容性）
//   permission: {
//     "scope.userLocation": {
//       desc: "获取Wi-Fi需要位置权限",
//     },
//   },
//   window: {
//     backgroundTextStyle: "light",
//     navigationBarBackgroundColor: "#fff",
//     navigationBarTitleText: "WeChat",
//     navigationBarTextStyle: "black",
//   },
// });
